package main

import (
	"abdis/config"
	"abdis/lib/logger"
	"abdis/redis/server"
	"abdis/tcp"
	"fmt"
)

func main() {
	config.SetUpConfig("abdis.conf")

	err := tcp.ListenAndServeWithSignal(&tcp.Config{
		Address: fmt.Sprintf("%s:%d", config.Properties.Bind, config.Properties.Port),
	}, server.MakeHandler())
	if err != nil {
		logger.Error(err)
	}

}
